package com.artpri.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * GoodsAttr entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "goods_attr", catalog = "jpw")
public class GoodsAttr implements java.io.Serializable {

	// Fields

	private Integer gaId;
	private Integer goodsNum;
	private Integer attrId;
	private String gaValue;
	private Integer gaState;

	// Constructors

	/** default constructor */
	public GoodsAttr() {
	}

	/** minimal constructor */
	public GoodsAttr(Integer goodsNum, Integer attrId, String gaValue) {
		this.goodsNum = goodsNum;
		this.attrId = attrId;
		this.gaValue = gaValue;
	}

	/** full constructor */
	public GoodsAttr(Integer goodsNum, Integer attrId, String gaValue,
			Integer gaState) {
		this.goodsNum = goodsNum;
		this.attrId = attrId;
		this.gaValue = gaValue;
		this.gaState = gaState;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ga_id", unique = true, nullable = false)
	public Integer getGaId() {
		return this.gaId;
	}

	public void setGaId(Integer gaId) {
		this.gaId = gaId;
	}

	@Column(name = "goods_num", nullable = false)
	public Integer getGoodsNum() {
		return this.goodsNum;
	}

	public void setGoodsNum(Integer goodsNum) {
		this.goodsNum = goodsNum;
	}

	@Column(name = "attr_id", nullable = false)
	public Integer getAttrId() {
		return this.attrId;
	}

	public void setAttrId(Integer attrId) {
		this.attrId = attrId;
	}

	@Column(name = "ga_value", nullable = false, length = 60)
	public String getGaValue() {
		return this.gaValue;
	}

	public void setGaValue(String gaValue) {
		this.gaValue = gaValue;
	}

	@Column(name = "ga_state")
	public Integer getGaState() {
		return this.gaState;
	}

	public void setGaState(Integer gaState) {
		this.gaState = gaState;
	}

}